import ljcDB from '/uni_modules/ljc-database/js_sdk';
const db = ljcDB;

let addressList = ["addressList", {
	address: "text",
	privateKey: "text",
	mnemonics: "text",
	chainType: "text",
	chainName: "text",
	chainId: "text",
	name: "text",
	password: "text",
	passwordTilp: "text",
	importMethod: "text", //1助记词导入，2平台创建 ，3私钥导入,4观察钱包
}]
let choinList = ["choinList", { // 注意不要用sql关键字哦，例如group
	address: "text", //钱包地址
	chainType: "text", //链类型
	chainName: "text", //链名
	chainId: "text", //链ID
	tokenaddress: "text", //代币地址
	tokenname: "text", //代币名称
	tokenimg: "text", //代币图标
	tokennum: "text", //代币数量
	tokendemail: "text", //代币小数位
	tokensymbol: "text", //代币符号
	tokenprice: "text" //代币价格
}]

let addressBook = ["addressBook", { // 注意不要用sql关键字哦，例如group
	address: "text", //钱包地址
	addressName: "text", //钱包地址
	chainType: "text", //链类型
	chainImg: "text", //链图标
	chainName: "text", //链名
	chainId: "text", //链ID
	addressRemark: "text", //地址备注
}]
db.init('list', [addressList, choinList, addressBook]).then(res => {

}).catch(err => {

})
// 导出这个实例，或者直接赋值给全局变量
export default db;
// 或者使用全局变量
// uni.$ljcdb = db;